#include "vs_qt_test.h"
#include <QDebug>
#include <QMessageBox>

vs_Qt_test::vs_Qt_test(QWidget *parent)
    : QWidget(parent)
{
    ui.setupUi(this);
    init();
}

vs_Qt_test::~vs_Qt_test()
{}

void vs_Qt_test::init()
{
    connect(ui.But_1, &QPushButton::clicked, this, [=]() {
        QMessageBox::information(this, "test", "button is clicked!");
        qDebug() << "Button clicked: 123456";
        });
}

void vs_Qt_test::test()
{ }

